package com.power.flowable.api;

import com.plf.common.domain.ResponseDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;


@FeignClient(value = "sfflow-svr", contextId = "sfflow-svr", path = "/sfflow-svr")
@RestController
public interface IAct_dsn_form_tableFeign {

    /**
     * 根据formid查询表单所使用的表
     */
    @PostMapping("/act_dsn_form_table/queryListByFormId")
    ResponseDTO queryListByFormId(@RequestParam String formid);


    /**
     * 根据formid查询表单所使用的表
     * @param {tabls: List<act_dsn_form_table> , layout: Act_dsn_form_layout}
     */
    @PostMapping("/act_dsn_form_table/batchSave")
    ResponseDTO batchSave(@RequestBody Map map);

    /**
     * 根据主键id删除业务表数据
     * @param table 业务表名
     * @param primarykey 主键名
     * @return
     */
    @PostMapping("/act_dsn_form_table/formRemoveById")
    ResponseDTO formRemoveById(@RequestParam String table, @RequestParam String primarykey);


}
